package net.yla.smartbus.core.validation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author KongXianDe
 * @date 2019/7/5 15:03
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = CanNullLengthValidator.class)
public @interface CanNullLength {

    int min() default 0;

    int max() default 2147483647;

    // 提示内容
    String message() default "flag不存在";

    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
